home *** CD-ROM | disk | FTP | other *** search
/ FM Towns: Free Software Collection 11 / FM Towns Free Software Collection 11.iso / t_os / shell / tokei4 / src / aboutgui.c next >
C/C++ Source or Header  |  1995-04-04  |  3KB  |  119 lines

  1. #include <stdio.h>
  2. #include <stdlib.h>
  3. #include <winb.h>
  4. #include <te.h>
  5. #include <fntb.h>
  6. #include <gui.h>
  7.  
  8. extern int    aboutDialogID ;
  9. extern int    aboutMessageID[4] ;
  10. extern int    aboutDButtonID ;
  11. extern int    aboutQuitFunc() ;
  12.  
  13. #define ALIGN    4
  14. #define OFFSET(type) (sizeof(MMIPACKET) + (sizeof(type)+ALIGN-1)/ALIGN*ALIGN)
  15.  
  16. /*    MMI_init 用データ    */
  17.  
  18. /*    ヘッダ    */
  19.  
  20. MMIINIT    initDataABOUTGUI = { "MmiInit",   6, 0 } ;
  21.  
  22. /* aboutDialogID */
  23.  
  24. static MMIPACKET d001 = {    &aboutDialogID,
  25.                             NULL,
  26.                             &MJ_DIALOGL40,
  27.                             OFFSET(DIALOGL40),
  28.                             MS_NONE
  29.                         } ;
  30. static DIALOGL40    d001d = {    MS_BTLEFTL40 | MS_EVMOSONL40,
  31.                              212, 172, 429, 301, 8, 1, 8,
  32.                             MS_PANELL40 | MS_FRAMEL40,
  33.                             NULL,   0,   0
  34.                         } ;
  35.  
  36. /* aboutMessageID[0] */
  37.  
  38. static MMIPACKET d002 = {    &aboutMessageID[0],
  39.                             &aboutDialogID,
  40.                             &MJ_MSGL40,
  41.                             OFFSET(MSGL40),
  42.                             MS_NONE
  43.                         } ;
  44. static MSGL40    d002d =     {    MS_CENTERL40 | MS_DSPONLYL40,
  45.                              289, 185, 352, 204, 8,15,13,
  46.                             MS_NONEL40,
  47.                             "時計ー",
  48.                                0,  16,  16,
  49.                             MS_BOLDL40 | MS_OUTLINEL40,
  50.                                0,   0
  51.                         } ;
  52.  
  53. /* aboutMessageID[1] */
  54.  
  55. static MMIPACKET d003 = {    &aboutMessageID[1],
  56.                             &aboutDialogID,
  57.                             &MJ_MSGL40,
  58.                             OFFSET(MSGL40),
  59.                             MS_NONE
  60.                         } ;
  61. static MSGL40    d003d =     {    MS_CENTERL40 | MS_DSPONLYL40,
  62.                              241, 215, 400, 234, 8,15,15,
  63.                             MS_NONEL40,
  64.                             "Programmed by 機拡 1995.4",
  65.                                1,  12,  12,
  66.                             MS_NONEL40,
  67.                                0,   0
  68.                         } ;
  69.  
  70. /* aboutMessageID[2] */
  71.  
  72. static MMIPACKET d004 = {    &aboutMessageID[2],
  73.                             &aboutDialogID,
  74.                             &MJ_MSGL40,
  75.                             OFFSET(MSGL40),
  76.                             MS_NONE
  77.                         } ;
  78. static MSGL40    d004d =     {    MS_CENTERL40 | MS_DSPONLYL40,
  79.                              248, 241, 393, 260, 8, 7,15,
  80.                             MS_OPAQUEL40,
  81.                             "b",
  82.                                1,  12,  12,
  83.                             MS_NONEL40,
  84.                                0,   0
  85.                         } ;
  86.  
  87. /* aboutDButtonID */
  88.  
  89. static MMIPACKET d005 = {    &aboutDButtonID,
  90.                             &aboutDialogID,
  91.                             &MJ_DBUTTONL40,
  92.                             OFFSET(DBUTTONL40),
  93.                             MS_NONE
  94.                         } ;
  95. static DBUTTONL40    d005d = {    MS_BTLEFTL40 | MS_EVMOSOFFL40 | MS_EVKEYONL40,
  96.                              352, 268, 415, 291, 5, 1, 8,
  97.                             MS_PANELL40 | MS_FRAMEL40,
  98.                             aboutQuitFunc,
  99.                             0x8012
  100.                         } ;
  101.  
  102. /* aboutMessageID[3] */
  103.  
  104. static MMIPACKET d006 = {    &aboutMessageID[3],
  105.                             &aboutDialogID,
  106.                             &MJ_MSGL40,
  107.                             0,
  108.                             MS_NONE
  109.                         } ;
  110. static MSGL40    d006d =     {    MS_CENTERL40 | MS_DSPONLYL40,
  111.                              368, 271, 399, 288, 8,15,15,
  112.                             MS_NONEL40,
  113.                             "了 解",
  114.                                1,  12,  12,
  115.                             MS_NONEL40,
  116.                                0,   0
  117.                         } ;
  118.  
  119.